package com.jiuyun.dao;

import com.jiuyun.entity.PerStudent;
import com.jiuyun.entity.PerTeacher;
import com.jiuyun.entity.PerUser;
import com.jiuyun.entity.Userrole;

import java.sql.SQLException;
import java.util.List;

public interface PersonalDao {
    //查询个人信息  User、Teacher、Student
    List<PerUser> findUser(int uid) throws SQLException;
    List<PerTeacher> findTeacher(int teacherid) throws SQLException;
    List<Userrole> findStu(int stid) throws SQLException;


    //修改个人信息  User、Teacher、Student
    int updateUser(int uid, String uname, String upass) throws SQLException;
    int updateTeacher(int tid, String tname, String tpass, String tphone)throws SQLException;
    int updateStudent(int uid,String uname,String upass)throws SQLException;

}
